﻿using Microsoft.EntityFrameworkCore;
using S.Produce.Domains;

namespace S.Produce.Infrastructure
{
    public class MyDbContext:DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options) { }

        /// <summary>
        /// 羊只转舍
        /// </summary>
        public DbSet<ShiftDorm> ShiftDorm { get; set; }

        /// <summary>
        /// 种母配种
        /// </summary>
        public DbSet<Breeding> Breeding { get; set; }

        /// <summary>
        /// 种母历史记录
        /// </summary>
        public DbSet<History> History { get; set; }

        /// <summary>
        /// 妊检信息表
        /// </summary>
        public DbSet<Pregnant> Pregnant { get; set;}

        /// <summary>
        /// 种母分娩表
        /// </summary>
        public DbSet<Delivery> Delivery { get; set; }

        /// <summary>
        /// 种母断奶表
        /// </summary>
        public DbSet<Weanings> Weanings { get; set; }
    }
}
